package week04.bank;
 //   This program tests the BankAccount class and
 //   its subclasses.


public class OperatiuniBancare
 {
    public static void main(String[] args)
    {
       ContDebit cardParinte = new ContDebit(0.5);
       ContCredit alocatieCopil = new ContCredit(100);

       cardParinte.depunere(10000);
       cardParinte.transfer(2000, alocatieCopil);
       alocatieCopil.retragere(1500);
       alocatieCopil.retragere(80);
       cardParinte.transfer(1000, alocatieCopil);
       alocatieCopil.retragere(400);

       // Simulate end of month
       cardParinte.dobanda();
       alocatieCopil.taxareTranzactie();

       System.out.println("Mom's savings balance = $" + cardParinte.getSold());
       System.out.println("Harry's checking balance = $" + alocatieCopil.getSold());
    }
 }
